const express = require("express");

const app = express();

app.use((req, res, next) => {
  res.status(200);
  next();
});

app.use((req, res, next) => {
  res.header("token", "123123");
  next();
});

app.use((req, res) => {
  res.send({ a: 1, b: 2 });
});

// http://127.0.0.1:3000
app.listen(3000, () => {
  console.log("success", "http://127.0.0.1:3000");
});
